[mysqld]
datadir={{mysql_data_path}}
#socket={{socket_path}}

read_only=1

gtid_mode=ON
enforce_gtid_consistency=true

server_id = {{ (ansible_default_ipv4.address.split('.')[2] | int) * 1000 + (ansible_default_ipv4.address.split('.')[3] | int) }}
log_bin={{bin_path}}

log-error={{error_path}}
pid-file=/var/run/mysqld/mysqld.pid

[client]
socket={{socket_path}}
